package com.mfs.common.exception;

/**
 * 业务异常
 *
 * @author mfs
 * @date 2024/5/26 0:53
 **/
public class BusinessException extends RuntimeException{
    private Integer errorNo;

    public BusinessException() {
        super();
    }

    public BusinessException(Integer errorNo) {
        super();
        this.errorNo = errorNo;
    }

    public BusinessException(String errorInfo) {
        super(errorInfo);
    }
    public BusinessException(Integer errorNo, String errorInfo) {
        super(errorInfo);
        this.errorNo = errorNo;
    }

    public Integer getErrorNo() {
        return errorNo;
    }
}
